package com.example.application.bean;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 *订单类
 */
public class Order implements Serializable {

    //订单id
    private Integer id;
    //创建时间
    private LocalDateTime createTime;
    //订单明细集合
    private List<Detail> details;
    //订单总金额
    private double money;
    //订单对应的评价
    private Comment comment;
    //下单的宠主
    private PetOwner petOwner;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public List<Detail> getDetails() {
        return details;
    }

    public void setDetails(List<Detail> details) {
        this.details = details;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Comment getComment() {
        return comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }

    public PetOwner getPetOwner() {
        return petOwner;
    }

    public void setPetOwner(PetOwner petOwner) {
        this.petOwner = petOwner;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", createTime=" + createTime +
                ", details=" + details +
                ", money=" + money +
                ", comment=" + comment +
                ", petOwner=" + petOwner +
                '}';
    }
}
